package com.atguigu.yygh.hosp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


/**
 * 表示取消数据源的自动配置
 */
//@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})

@SpringBootApplication
//扫描 common config 依赖中引入 大范围扫描
@ComponentScan(basePackages = "com.atguigu")
//启动服务 服务就会在nacos中注册
@EnableDiscoveryClient
//找到service_cmn_client 中 @FeignClient("service-cmn")   进行调用
@EnableFeignClients(basePackages = "com.atguigu")
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}

